package com.gao.api.gate.quick.core.async;

import java.util.concurrent.CompletableFuture;
import java.util.concurrent.Future;

/**
 * <p></p>
 *
 * @author gaoshuangwen
 * @since 2022/01/12 10:10
 */
public interface ListenableFuture<T> extends Future<T> {

    void addListener(Listener<T> listener);

    default CompletableFuture<T> buildCompletableFuture(){
        return new CompletableFuture<>();
    }

}
